#ifndef _SPRITE_H_
#define _SPRITE_H_

#include "Entity2D.h"
#include "Renderer.h"

class ENGINE_API Sprite : public Entity2D
{
	TEX_VERTEX * vertexs;
	float u, v, texX, texY;
	tex_ptr* texture;

public:
	Sprite();
	void SetTexture(tex_ptr* texture);
	virtual void resetVertexs();
	void SetU(float U);
	void SetV(float V);
	~Sprite();
	virtual void Draw(Renderer * render);

	void setTextureArea(float x, float y, float height, float width){}
	virtual void Update(){}

};

#endif